import 'package:flutter/material.dart';

class ColorDot extends StatelessWidget {
  final Color dotColor;
  final bool select;

  const ColorDot({
    super.key,
    required this.dotColor,
    this.select = false,
  });

  @override
  Widget build(BuildContext context) {
    return Container(
      width: 24,
      height: 24,
      padding: const EdgeInsets.all(2.5),
      decoration: BoxDecoration(
        shape: BoxShape.circle,
        border: Border.all(color: select ? dotColor : Colors.transparent),
      ),
      child: DecoratedBox(
        decoration: BoxDecoration(
          color: dotColor,
          shape: BoxShape.circle,
        ),
      ),
    );
  }
}
